#include <iostream>
using namespace std;
int main()
{
int C,B,A;
cout << "A=";
cin >>A;
cout << "B=";
cin >>B;
cout << "C=";
cin >>C;
if (((A<B) && (B<C)) || ((C<B)&&(B<A)))
{
    cout<<"srednee B="<<B<<endl;
}
if (((B<C)&&(C<A)) || ((A<C)&&(C<B)))
{
    cout<<"srednee C="<<C<<endl;
}
if (((B<A)&&(A<C)) || ((C<A)&&(A<B)))
{
   cout<<"srednee A="<<A<<endl;
}
return 0;
}
